|
Public Types
|
enum |
ResUnit { k_PixelsPerInch =
1, k_PixelsPerCentimeter
= 2 } |
|
Resolution units (mainly used so resolution
is preserved in PSD & TIFF files). More...
|
Public Member Functions
|
|
ImageDescriptor (int
x, int y, int nx, int ny, MemoryChannelOrder
order=orderRGBA, bool premult=true, char nc=4, ChannelType
ct=uChar) |
|
Constructor -- make a descriptor...
|
|
ImageDescriptor (int
nx, int ny, MemoryChannelOrder
order=orderRGBA, bool premult=true, char nc=4, ChannelType
ct=uChar) |
|
Constructor -- make a descriptor...
|
|
ImageDescriptor
() |
|
default constructor -- RGBA, premult, 4
channel uChar, size 0 x 0 pixels.
|
int |
numBytes ()
const |
|
return the number of bytes the raw image
pixels will occupy -- not necessarily accurate for VirtualImages
|
int |
strideBytes ()
const |
|
return the number of bytes wide that the
image is
|
int |
xSize () const |
|
return the x Size of the image
|
int |
ySize () const |
|
return the y Size of the image
|
int |
cSize () const |
|
return the channel count of the image
|
bool |
sizeEqual (const
ImageDescriptor &o)
const |
|
return true if the x and y dimensions are
equal
|
void |
setSize (int nx, int
ny) |
|
Set the size of the image in pixels.
|
const ImgTile & |
getBounds ()
const |
|
return the bounds of the image
|
void |
getResolutionInfo
(float &xRes, float &yRes, ResUnit &unit)
const |
|
return the horizontal and vertical
resolution of the image
|
void |
setResolutionInfo
(float xRes, float yRes, ResUnit unit) |
|
set the horizontal and vertical resolution
of the image
|
Protected Attributes
|
ImgTile |
m_Bounds |
|
Bounds of the image -- some images may not
have a 0,0 origin.
|
float |
m_xResolution |
|
horizontal resolution in pixels per unit
|
float |
m_yResolution |
|
vertical resolution in pixels per unit
|
ResUnit |
m_ResolutionUnits |
|
units -- 1 == inch, 2 == centimeter (same as
in PSD files)
|
Friends
|
class |
Image |
mudbox::ImageDescriptor
mudbox::ImageDescriptor mudbox::ImageDescriptor
mudbox::ImageDescriptor mudbox::ImageDescriptor
mudbox::ImageDescriptor mudbox::ImageDescriptor
mudbox::ImageDescriptor mudbox::ImageDescriptor
mudbox::ImageDescriptor
mudbox::ImageDescriptor
mudbox::ImageDescriptor mudbox::ImageDescriptor
mudbox::ImageDescriptor mudbox::ImageDescriptor
mudbox::ImageDescriptor mudbox::ImageDescriptor
mudbox::ImageDescriptor mudbox::ImageDescriptor
mudbox::ImageDescriptor